import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import DevUI from 'vue-devui';
import 'vue-devui/style.css';
import '@devui-design/icons/icomoon/devui-icon.css';
import { ThemeServiceInit, infinityTheme } from 'devui-theme';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'wow.js/css/libs/animate.css'

import BaiduMap from 'vue-baidu-map-3x'
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}




ThemeServiceInit({ infinityTheme }, 'infinityTheme');
app.use(DevUI).use(ElementPlus).use(BaiduMap, {
  // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  ak: 'X4SKfYs54pfWBe2PTuKo3vuzssYEPesT',
  // v:'2.0',  // 默认使用3.0
  // type: 'WebGL' // ||API 默认API  (使用此模式 BMap=BMapGL)
}).mount('#app')
